﻿const num1Input = document.getElementById('num1') as HTMLInputElement;
const num2Input = document.getElementById('num2') as HTMLInputElement;
const btnElement =document.querySelector('button');


btnElement.addEventListener('click', (event)=>{
    const num1 = +num1Input.value;
    const num2 = +num2Input.value;
    const result = num1 + num2;
    console.log(result);
});



function add(a:number,b:number){
    return a + b;
}

function printResult(result):void{
    console.log(result);
}

const result = add(5,3);
let isDone = false;


console.log(isDone);
console.log(result);